package com.ganzi.manager.base;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableLogic;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * @author lxd
 * @description
 * @date 2019-08-02
 */
@Data
@EqualsAndHashCode(callSuper = true)
public abstract class BaseModel<T extends Model> extends Model<T> {
    /**
     * 创建日期
     */
    private Date createTime=new Date();
    /**
     * 数据删除状态
     */
    @TableLogic
    private Integer delStatus=0;
}

